<?php

class Register {
    
    public static $vars;
    
    protected function __construct() {}
    
    public static function get($name, $quiet = false){
        if (!isset(Register::$vars[$name])) {
            if ($quiet) {
                return;
            } else {
                dbg(debug_backtrace());
            }
        }
        return(Register::$vars[$name]);
    }
    
    public static function set($name, $value){
        Register::$vars[$name]=$value;
    }
}
